{% extends "base.html" %} 
{% block mainbody %}
<form action="/search_post" method="post">
    {% csrf_token %}
    <input type="text" name="q">
    <input type="submit" value="Submit">
</form>

<p>{{ rlt }}</p>
{% endblock %}